From: Juri Linkov Date: Thu, 2 Feb 2012 00:49:06 +0000 (+0200) Subject: * lisp/image-mode.el (image-toggle-display-image): Remove tautological `major-mode' X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~993 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9191ee82975dc9089580b9256b5c2945f5dadc9a;p=emacs.git * lisp/image-mode.el (image-toggle-display-image): Remove tautological `major-mode' from the `derived-mode-p' test. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93a6a410777..8a219900ffa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-02-02 Juri Linkov + + * image-mode.el (image-toggle-display-image): Remove tautological + `major-mode' from the `derived-mode-p' test. + 2012-02-02 Kenichi Handa * composite.el (compose-region, compose-string): Signal error for diff --git a/lisp/image-mode.el b/lisp/image-mode.el index a9a8d15e6a0..953cb9e94a1 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -482,7 +482,7 @@ Remove text properties that display the image." "Show the image of the image file. Turn the image data into a real image, but only if the whole file was inserted." - (unless (derived-mode-p 'image-mode major-mode) + (unless (derived-mode-p 'image-mode) (error "The buffer is not in Image mode")) (let* ((filename (buffer-file-name)) (data-p (not (and filename